<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>官方微信</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="-190319948">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/manage/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/manage/js/jquery-1.7.1.min.js"></script>

	<script type="text/javascript" src="/manage/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/manage//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/manage/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/manage/css/define.css"/>
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "-190319948";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/manage/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/manage/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("officialwechat.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		THIS.setData(protocol.data);
  		
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>

<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#officialwechatForm").form({
		"":function(){}
		,"tbOfficialWechat.tbowId":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"tbOfficialWechat.tbowQrCode":function(el){
		}
		,"tbOfficialWechat.tbowBrand":function(el){
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>
 
<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>





<form lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'}}" class="form editform edittype_{{edittype}}" ref="TbOfficialWechat" id="officialwechatForm" name="officialwechatForm" target="jsoniframe" action="officialwechat.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt">
				温馨提示：请仔细填写官方微信相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
					
				
				
	{{lz.set("tbowId_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbowId"))))}}
	{{lz.set("tbowId_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$tbowId}}
	<dl lz:if="{{tbowId_editable||tbowId_readonly}}" class="tbowId hidden " major  ref="tbowId">
		<dt>编　　号:</dt>
		<dd lz:if="{{tbowId_editable}}" input="hidden">
			<lz:block lz:if="{{tbOfficialWechat$tbowId}}">
				{{tbOfficialWechat$tbowId}}
			</lz:block>
			<lz:block lz:if="{{!tbOfficialWechat$tbowId}}">
			<input type="hidden" value="{{lz.htm(tbOfficialWechat.tbowId)}}" name="tbOfficialWechat.tbowId" id="tbowId" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbowId_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbowId">{{tbOfficialWechat.tbowId}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbOfficialWechat.tbowId$||tbOfficialWechat.tbowId)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbowId}}
					
				
				
	{{lz.set("tbowQrCode_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbowQrCode"))))}}
	{{lz.set("tbowQrCode_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$tbowQrCode}}
	<dl lz:if="{{tbowQrCode_editable||tbowQrCode_readonly}}" class="ribs tbowQrCode   wider" major  ref="tbowQrCode">
		<dt>二维码图片:</dt>
		<dd lz:if="{{tbowQrCode_editable}}" input="image">
			<lz:block lz:if="{{tbOfficialWechat$tbowQrCode}}">
				{{tbOfficialWechat$tbowQrCode}}
			</lz:block>
			<lz:block lz:if="{{!tbOfficialWechat$tbowQrCode}}">
		    <input type="text" class="input" maxlength="128" size="32" name="tbOfficialWechat.tbowQrCode" id="tbowQrCode"  value="{{lz.htm(tbOfficialWechat.tbowQrCode)}}"/>
			<button type="button" onclick="$.upload({type:'img',callback:function(url){if(url)$('#tbowQrCode').val(url)}})" class="button">设置图片</button>
			<button type="button" onclick="$('#tbowQrCode').val('')" class="button">删除图片</button>
			<button type="button" onclick="$.thumb({url:$('#tbowQrCode').val()})" class="button">查看图片</button>
	 	 </lz:block>
	 	 
	 	 <em>请上传官方微信的二维码图片</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbowQrCode_readonly}}">
		 	<div class="state-input wide">
		 		<textarea class=""  style="display:none;" id="tbowQrCode">{{tbOfficialWechat.tbowQrCode}}</textarea>
		 		<span>
		 	<img lz:if="{{tbOfficialWechat.tbowQrCode}}" onclick="$.thumb({url:this.src})" style="margin:10px;padding:1px;border:1px solid;" onload="if(this.width>this.height){this.width=96}else{this.height=96}" src="{{lz.htm(tbOfficialWechat.tbowQrCode)}}"/>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbowQrCode}}
					
				
				
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{tbOfficialWechat.tbowId}}" name="tbOfficialWechat.tbowId" id="tbowId" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'}}">
				<button class="button" type="submit">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				
				
				
				
				
				
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/business/officialwechat.edit.html?edittype=update&id={{tbOfficialWechat.id}}"'>
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					修改&nbsp;&nbsp;</button>
				
				
				<button lz:if="{{canDel}}" type="button" class="button" onclick="deleteOfficialwechat('{{tbOfficialWechat.id}}','{{tbOfficialWechat.tbowId}}')">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					删除&nbsp;&nbsp;</button>
				
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>





 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>

</script>
</html>